package com.biz.primus.ms.member.dao.repository;

import com.biz.primus.model.member.enums.InvoiceTypes;
import com.biz.primus.ms.base.jpa.repository.CommonJpaRepository;
import com.biz.primus.ms.member.dao.po.MemberInvoice;
import java.util.List;

/**
 * @author jun.liu
 * @usage
 * @reviewer
 * @since 2017-10-23
 */
public interface MemberInvoiceRepository extends CommonJpaRepository<MemberInvoice, Long>, MemberInvoiceDao
{

    /**
     * 根据发票类型 会员id查询发票集合
     * @param invoiceType
     * @param memberId
     * @return
     */
    List<MemberInvoice> findByInvoiceTypeAndMemberId(InvoiceTypes invoiceType, Long memberId);

}
